package com.jymj.entity.vo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * Created by ${lc} on 2021/6/29.
 */
@Data
public class ScoreVo {
    private String xzqmc;
    private String code;
    private String zhen;
    private String czlx;
    private String czdl;
    private Integer counts;//总问题数
    private Integer yzgcounts;//已整改问题数
    private Integer wzgcounts;//未整改问题数
    private Integer yqzgs;//逾期整改问题数
    private BigDecimal jcdf;//检查得分
    private BigDecimal zgl;//整改率
    private BigDecimal zgdf;//整改得分(整改率)
    private BigDecimal fmqdf;//负面清单得分
    private BigDecimal zhdf;//综合得分(整改率)
    private String hgqk;//合格情况
    private Integer ranking;
    private BigDecimal zghdf;//整改后得分
    private BigDecimal zghzhdf;//整改后综合得分

    public String getHgqk() {
        if (getZhdf() != null){
            if (getZhdf().compareTo(BigDecimal.valueOf(80)) >= 0){
                return "合格";
            }else {
                return "不合格";
            }
        }
        return null;
    }
}
